
<div id="SaltConfig">
<!--未分类主机-->
<div>
                            <form  class="form-block host-list">
                                <ul class="list-group" style="border:0px;padding:0px">
                                    <li  class="list-group-item">
                                        <span class="badge badge-primary"><i class="fa fa-chevron-down " id="group_toggle_-2" onclick="ToggleGroup(-2)"></i></span>
                                        <span data_label="group" class="badge badge-primary">全选</span>
                                        <b>未分类主机 <a style="font-size:20px" class="text-danger">[{{  request.user.bind_hosts.select_related.count }}] </a>台</b>
                                    </li>
								</ul>
                          <table class="table table-bordered" >
                          <thead >
                          <tr id="TableRow TheadTr" style='display:none' >
                              <th>勾选</th>
                            {% for name in FieldName %}

								<th>{{ name }}</th>

                            {% endfor %}
                          </tr>
                          </thead>
                          <tbody >
                            {% for host in request.user.bind_hosts.select_related %}
                            <label input_label='host' style='display:none'  class="CheckAll">
                                <tr id="TableRow" style='display:none' class="CheckAll" >
                              <td><input type="checkbox" id={{ host.id }} ></td>

                              <td name="ip_addr" >{{ host.host.ip_addr }}</td>
                            <td name="hostname" edit-type="input" origin="{{ host.host.hostinfo.hostname }}">{{ host.host.hostinfo.hostname }}</td>
                                <td class="text-danger" id="MinionStatus">{{ host.host.minionstatus }}</td>
                                <td><button class="ellipse ellipse-small-green" id="SaltKeyAction" name ="key.accept" type="button">接受</button></td>
                                <td><button class="ellipse ellipse-small-yellow" id ="SaltKeyAction" name ="key.reject" type="button" >拒绝</button></td>
                                <td><button class="ellipse ellipse-small-red" id ="SaltKeyAction" name ="key.delete" type="button" >删除</button></td>
                                </tr>
                                </labelid>
                            {% endfor %}
                        </tbody>
                          </table>

                            </form>
</div>
<!--===================================================-->
<hr style="margin:0px">
<!--end未分类主机-->
<!--分类主机-->
<div>
                    {% for g in request.user.host_groups.select_related  %}
                            <!--Block level checkboxes-->
                            <!--===================================================-->
                            <form  class="form-block host-list">
                                <ui class="list-group" style="border:0px;padding:0px" >
                                    <li  class="list-group-item">
                                        <span class="badge badge-primary"><i class="fa fa-chevron-down " id="group_toggle_{{ g.id }}" onclick="ToggleGroup({{ g.id }})"></i></span>
                                        <span data_label="group" class="badge badge-primary">全选</span>
                                        <b>{{ g.name }}<a style="font-size:20px" class="text-danger"> [{{  g.bind_hosts.select_related.count}}]</a>台</b>
                                    </li>
                                </ui>
                        <p></p>
                          <table class="table table-bordered" >
                          <thead>
                          <tr id="TableRow TheadTr" style='display:none' >
                              <th>勾选</th>
                            {% for name in FieldName %}
								<th>{{ name }}</th>
                            {% endfor %}
                          </tr>
                          </thead>
                          <tbody  table_label='host'>
                            {% for host in g.bind_hosts.select_related %}
                            <label input_label='host' style='display:none'  class="CheckAll">
                                <tr id="TableRow" style='display:none' class="CheckAll" >
                              <td><input type="checkbox" id={{ host.id }} ></td>

{##}
                              <td name="ip_addr" >{{ host.host.ip_addr }}</td>
                            <td name="hostname" edit-type="input" origin="{{ host.host.hostinfo.hostname }}">{{ host.host.hostinfo.hostname }}</td>
                                <td class="text-danger" id="MinionStatus">{{ host.host.minionstatus }}</td>
                               <td><button class="ellipse ellipse-small-green" id="SaltKeyAction" name ="key.accept" type="button">接受</button></td>
                                <td><button class="ellipse ellipse-small-yellow" id ="SaltKeyAction" name ="key.reject" type="button" >拒绝</button></td>
                                <td><button class="ellipse ellipse-small-red" id ="SaltKeyAction" name ="key.delete" type="button" >删除</button></td>
                                </tr>
                                </label>
                            {% endfor %}
                        </tbody>
                          </table>
                            </form>
                            <!--===================================================-->
                        <hr style="margin:0px">
                    {% endfor %}
                </div>
<!--end分类主机-->
</div>